package com.jason.service.stuserciceImpl;

import com.jason.domain.Student;
import com.jason.entity.StudentDoo;
import com.jason.mapper.StuMapper;
import com.jason.service.StuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class StuServiceImpl implements StuService {
    @Autowired
    private StuMapper mapper;
    @Override
    public List<Student> list() {
        return mapper.list();
    }

    @Override
    public int delete(Integer id) {
        return mapper.delete( id);
    }

    @Override
    public int save(Student student) {
        return mapper.save(student);
    }

    @Override
    public int update(Student student) {
        return 0;
    }

    @Override
    public Student get(Integer id) {
        return null;
    }


}
